package com.xtz.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 菜品
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Dish{

    private String id;

    private Integer type = 0;

    //菜品名称
    private String name;

    //菜品分类id
    private String categoryId;

    //菜品价格
    private double price;

    //商品码
    private String code;

    //图片
    private String image;

    //描述信息
    private String description;

    //0 停售 1 起售
    private Integer status;

    //顺序
    private Integer sort;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    private String createUser;

    private String updateUser;

    private List<DishFlavor> flavors;

    private String categoryName;

    private String copies;

}
